-
Notifications
You must be signed in to change notification settings - Fork 636
Add support for kaleido v1.0 (save_image()); fix CI
#2447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
save_image())
plotly_build() now works with ggmatrix objects (e.g., from GGally::ggpairs()). Previously, ggplotly() worked but plotly_build() did not have a method for this class. Co-Authored-By: Claude Opus 4.5 <[email protected]>
b6a8e09 to
6bf7534
Compare
Use matrix variable with fallback instead of ternary expression that was passing literal 'NULL' string to pak. Co-Authored-By: Claude Opus 4.5 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the plotly package to support the new kaleido v1.0+ release for save_image() functionality, while also fixing a bug with ggmatrix object handling and updating test infrastructure.
Changes:
- Added support for kaleido v1.0+ by implementing a new scope handler alongside the legacy version
- Fixed
plotly_build()to handleggmatrixobjects fromGGally::ggpairs() - Updated test infrastructure to use
shinytest2instead of deprecatedshinytest
Reviewed changes
Copilot reviewed 44 out of 51 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| R/kaleido.R | Implements new kaleido scope handler for v1.0+ alongside legacy handler |
| R/plotly_build.R | Adds S3 method for ggmatrix class |
| NAMESPACE | Exports new plotly_build.ggmatrix method |
| tests/testthat/test-api.R | Skips deprecated Chart Studio API tests |
| tests/testthat/helper-skip.R | Updates dependency from shinytest to shinytest2 |
| .github/workflows/R-CMD-check.yaml | Pins kaleido to v0.2.1 for CI testing with note about v1.0+ rendering issues |
| DESCRIPTION | Updates RoxygenNote version |
| NEWS.md | Documents improvements and bug fixes |
| man/*.Rd | Updates conditional example wrappers for R version compatibility |
| inst/examples/shiny/event_data/tests/testthat/_snaps/shinytest2/*.json | Updates test snapshots with new crosstalk version and layout values |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
save_image())save_image()); fix CI
save_image(), while maintaining backward compatibility with legacy kaleido (v0.2.x)plotly_build()method forggmatrixobjects (e.g., fromGGally::ggpairs())